package com.young.springdemo.service.visitorpattern;

//@Component
public class TestVisit {

//    @PostConstruct
    public void testVisit(){
        EmployeeList employeeList = new EmployeeList();
        employeeList.add(new FulltimeEmployee("张无忌",48D,1000D));
        employeeList.add(new FulltimeEmployee("张三丰",30,2000));
        employeeList.add(new FulltimeEmployee("张翠山",10,500));
        employeeList.add(new ParttimeEmployee("周芷若",20,15));
        employeeList.add(new ParttimeEmployee("赵敏",50,20));

        employeeList.accept(new FADepartment());
    }

}
